def make_p(fn):
    def inner():
        result = '<p>' + fn() + '</p>'
        return result
    return inner

def make_h1(fn):
    def inner():
        result = '<h1>' + fn() + '</h1>'
        return result
    return inner

# 先执行内部装饰器，再执行外部装饰器，先写后执行，装饰
@make_p
@make_h1
def content():
    return 'python'

print(content())